#define _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void SLtest()
{
	SL sl;
	SeqListInit(&sl);

	
	SeqListPushBack(&sl, 10);
	SeqListPushBack(&sl, 9);
	SeqListPushBack(&sl, 8);

	SeqListPrint(&sl);

	SeqListPushFront(&sl, 2);
	SeqListPushFront(&sl, 4);
	SeqListPushFront(&sl, 6);
	SeqListPushFront(&sl, 8);

	SeqListPrint(&sl);

	int ret = SeqListFind(&sl, 8);
	SeqListInsert(&sl, ret, 100);

	SeqListPrint(&sl);

	SeqListPopBack(&sl);

	SeqListPopFront(&sl);

	SeqListPrint(&sl);


	ret = SeqListFind(&sl, 2);
	SeqListErase(&sl, ret);

	SeqListPrint(&sl);

	
	SeqLisstDestory(&sl);

}
int main()
{
	SLtest();
	return 0;
}